package cn.jiyun.dao.domain;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
@Data
public class Product implements Serializable {
    @Id
    private Integer id;

    private String name;

    private Integer price;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date time;

    @Transient
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date start;

    @Transient
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date end;

    private Integer status;

    private String ms;

}